package org.pb.org.service;

import org.pb.basic.service.IBaseService;
import org.pb.basic.utils.PageList;
import org.pb.org.domain.Department;
import org.pb.org.query.DepartmentQuery;

import java.util.List;

/**
 * 部门表对应的业务层接口
 * @author
 */
public interface IDepartmentService extends IBaseService<Department, DepartmentQuery> {

    /**
     * 获取到当前部门的所有上级部门
     * @return 返回所有部门和其对应的上级部门信息
     */
    List<Department> findTree();
}
